* Encoding: UTF-8.


***SPSS PROCESS code (Hayes, 2013)****



process y=demsat3/x=attpol/m=pimvoter/w=party2/cov=voted ideo inc revan reduc2 male white rage latino pimself amcond forcond concond libcond/model=7/plot=1/boot=1000/conf=99/effsize=1.

process y=pimvoter/x=attpol/w=party2/cov=voted ideo inc revan reduc2 male white rage latino pimself amcond forcond concond libcond/model=1/plot=1/boot=1000.

***OLS regression syntax*****

REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS R ANOVA CHANGE
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT pimvoter
  /METHOD=ENTER amcond forcond concond libcond
  /METHOD=ENTER voted ideo inc revan reduc2 male white rage latino    
  /METHOD=ENTER attpol party2 pimself
    /METHOD=ENTER attxpart.


REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS R ANOVA CHANGE
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT demsat3
  /METHOD=ENTER amcond forcond concond libcond
  /METHOD=ENTER voted ideo inc revan reduc2 male white rage latino party2   
  /METHOD=ENTER attpol    
   /METHOD=ENTER pimself
  /METHOD=ENTER pimvoter.


***CONSTRUCTED VARIABLES SYNTAX***


***covariates***

compute reduc=educ.
recode reduc (10=6) (6=7) (7=8) (8=9) (9=10).
compute reduc2=reduc.
recode reduc2 (4=1) (3=1) (2=1) (5=2) (6=3) (7=4) (8=5) (9=6) (10=7).
fre reduc2.

compute male=0.
if (gender = 1) male=1.
compute latino=0.
if (hisp=1) latino=1.
compute white=0.
if (race=1) white=1.
compute rage=age.
fre rage.
fre rage male latino white reduc2 ideo.

compute revan=0.
if (evan=1) revan=1.
fre revan.

compute ideo=mean.2(eideo, sideo).
fre ideo.

compute party2=party.
recode party2 (8=sysmis).
fre party2.

compute voted=0.
if (A2016vote le 2) voted=1.
fre voted.

compute amcond=0.
if (cond eq 2) amcond=1.
fre amcond.

compute forcond=0.
if (cond eq 3) forcond=1.
fre forcond.

compute concond=0.
if (cond eq 4) concond=1.
fre concond.

compute libcond=0.
if (cond eq 5) libcond=1.
fre libcond.


***focal variables***

compute attpol=mean.2(attent_1, attent_2).
fre attpol

compute demsat3=mean.3(electsat, demext, demsat).
fre demsat3.

compute attxpart=attpol*party2.

**presumed influence misinformation oneself***

compute tpam1_5r=6-tpam1_5.
compute tpselfam=mean.5(tpam1_1, tpam1_2, tpam1_3, tpam1_4, tpam1_5r).
compute TPfor1_5r=6-TPfor1_5.
compute tpvselfor=mean.5(TPfor1_1, TPfor1_2, TPfor1_3, TPfor1_4, TPfor1_5r).
compute tpcon1_5r=6-tpcon1_5.
compute tpvselfcon=mean.5(tpcon1_1, tpcon1_2, tpcon1_3, tpcon1_4, tpcon1_5r).
compute TPLib1_5r=6-TPLib1_5.
compute tpselflib=mean.5(TPLib1_1, TPLib1_2, TPLib1_3, TPLib1_4, TPLib1_5r).
compute TPC1_5r=6-TPC1_5.
compute tpselfctrl=mean.5(TPC1_1, TPC1_2, TPC1_3, TPC1_4, TPC1_5r).

compute pimself=6-(sum(tpselfam, tpvselfor, tpvselfcon, tpselflib, tpselfctrl)).
fre pimself.

***presumed influence misinformation other voters***

compute tpam2_5r=6-tpam2_5.
compute tpvotam=mean.5(tpam2_1, tpam2_2, tpam2_3, tpam2_4, tpam2_5r).
compute TPfor2_5r=6-TPfor2_5.
compute tpvotfor=mean.5(TPfor2_1, TPfor2_2, TPfor2_3, TPfor2_4, TPfor2_5r).
compute tpcon2_5r=6-tpcon2_5.
compute tpvotcon=mean.5(tpcon2_1, tpcon2_2, tpcon2_3, tpcon2_4, tpcon2_5r).
compute TPLib2_5r=6-TPLib2_5.
compute tpvotlib=mean.5(TPLib2_1, TPLib2_2, TPLib2_3, TPLib2_4, TPLib2_5r).
compute TPC2_5r=6-TPC2_5.
compute tpvotctrl=mean.5(TPC2_1, TPC2_2, TPC2_3, TPC2_4, TPC2_5r).


compute pimvoter=6-(sum(tpvotam, tpvotfor, tpvotcon, tpvotlib, tpvotctrl)).
fre pimvoter.






***RAW DATA VARIABLES***

gender
educ
race
race_5_TEXT
hisp
age
evan
inc
A2016vote
attent_1
attent_2
party
eideo
sideo
electsat
demext
demsat
cond
TPC1_1
TPC1_2
TPC1_3
TPC1_4
TPC1_5
TPC2_1
TPC2_2
TPC2_3
TPC2_4
TPC2_5
TPC3_1
TPC3_2
TPC3_3
TPC3_4
TPC3_5
TPlib1_1
TPlib1_2
TPlib1_3
TPlib1_4
TPlib1_5
TPLib2_1
TPLib2_2
TPLib2_3
TPLib2_4
TPLib2_5
TPLib3_1
TPLib3_2
TPLib3_3
TPLib3_4
TPLib3_5
tpcon1_1
tpcon1_2
tpcon1_3
tpcon1_4
tpcon1_5
tpcon2_1
tpcon2_2
tpcon2_3
tpcon2_4
tpcon2_5
tpcon3_1
tpcon3_2
tpcon3_3
tpcon3_4
tpcon3_5
TPfor1_1
TPfor1_2
TPfor1_3
TPfor1_4
TPfor1_5
TPfor2_1
TPfor2_2
TPfor2_3
TPfor2_4
TPfor2_5
TPfor3_1
TPfor3_2
TPfor3_3
TPfor3_4
TPfor3_5
tpam1_1
tpam1_2
tpam1_3
tpam1_4
tpam1_5
tpam2_1
tpam2_2
tpam2_3
tpam2_4
tpam2_5
tpam3_1
tpam3_2
tpam3_3
tpam3_4
tpam3_5



OUTPUT SAVE NAME=Document2
 OUTFILE='C:\Users\erikn\Dropbox\Nisbet_Mortenson_Shared\Pilot Project\Data Analysis\regression '+
    'tables.spv'
 LOCK=NO.